import 'package:flutter/material.dart';
import 'package:lib_core/customization/flutter/cupertino/text_selection.dart';
import 'package:lib_uikit/lib_uikit.dart';
import 'package:shimmer/shimmer.dart';

///骨架屏
class GTShimmerV3 extends StatefulWidget {
  final Widget child;

  const GTShimmerV3({
    super.key,
    required this.child,
  });

  @override
  State<StatefulWidget> createState() => _ShimmerStateV3();
}

class _ShimmerStateV3 extends State<GTShimmerV3> {
  @override
  Widget build(BuildContext context) {
    return Shimmer.fromColors(
        baseColor: GTColorsV3.shimmer_base.color,
        highlightColor: GTColorsV3.shimmer_highlight.color,
        child: widget.child,
    );
  }
}
